import Vue from 'vue'
import Router from 'vue-router'
import substitute from '@/components/substitute'
import addressList from '@/components/addressList'
import newAddress from '@/components/newAddress'
import editAddress from '@/components/editAddress'
import personal from '@/components/personal'
import wallet from '@/components/wallet'
import payment from '@/components/payment'
import bindPhone from '@/components/bindPhone'
import order from '@/components/order'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'substitute',
      component: substitute
    },
    {
      path: '/addressList',
      name: 'addressList',
      component: addressList
    },
    {
      path: '/newAddress',
      name: 'newAddress',
      component: newAddress
    },
    {
      path: '/editAddress',
      name: 'editAddress',
      component: editAddress
    },
    {
      path: '/personal',
      name: 'personal',
      component: personal
    },{
      path: '/wallet',
      name: 'wallet',
      component: wallet
    },{
      path: '/payment',
      name: 'payment',
      component: payment
    },{
      path: '/bindPhone',
      name: 'bindPhone',
      component: bindPhone
    },{
      path: '/order',
      name: 'order',
      component: order
    },
  ]
})
